import http from '@/utils/http'
/**
 * 登录请求
 */
export function postLogin (data) {
  return http({
    method: 'POST',
    url: '/login/wxMin'
  })
}
/**
 * 模拟登录请求
 */
export function nullPostLogin (phoneNumber) {
  return http({
    method: 'POST',
    url: '/login/wxMin/simple',
    data: {
      phoneNumber
    }
  })
}
/**
 * 个人信息接口
 */
export function grtUserlist () {
  return http({
    url: '/member/profile'
  })
}
/**
 * 修改头像
 */
export function getAvatar (data) {
  return uni.uploadFile({
    url: '/member/profile/avatar',
    filePath: data,
    name: 'file'
  })
}
/**
 * 修改信息
 */
export function putUser (data) {
  return http({
    method: 'PUT',
    url: '/member/profile',
    data
  })
}
